#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QTimer>
#include "qcvimagewidget.h"
#include "opencv2\opencv.hpp"

namespace Ui {
class MainWidget;
}

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(int viewnb, int h,int w, QWidget *parent = 0 );
    ~MainWidget();

signals:

public slots:
    void checkBox(bool state);
    void findGrid();
    void refresh();

private:
    Ui::MainWidget *ui;
    QList<QCVImageWidget*> m_cvImage;
    QTimer m_timer;
    cv::VideoCapture* m_capWebcam;
    int m_capt_width;
    int m_capt_height;


};

#endif // MAINWIDGET_H
